package com.kfm.spring.service.impl;

import com.kfm.spring.domain.SysRole;
import com.kfm.spring.mapper.SysRoleMapper;
import com.kfm.spring.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SysRoleServiceImpl implements SysRoleService {

    @Autowired
    private SysRoleMapper roleMapper;

    @Override
    public List<SysRole> findRoleByUser(String userId) {
        return roleMapper.selectByUserId(userId);
    }
}
